package com.yjt.gcss.gddw.common.bean.domain;

/**
 * AbstractBtOrgUserNoMappingId entity provides the base persistence definition
 * of the BtOrgUserNoMappingId entity. @author MyEclipse Persistence Tools
 */

public abstract class AbstractBtOrgUserNoMappingId implements
		java.io.Serializable {

	// Fields

	private String userNo;
	private String jfh;
	private String accNo;

	// Constructors

	/** default constructor */
	public AbstractBtOrgUserNoMappingId() {
	}

	/** full constructor */
	public AbstractBtOrgUserNoMappingId(String userNo, String jfh, String accNo) {
		this.userNo = userNo;
		this.jfh = jfh;
		this.accNo = accNo;
	}

	// Property accessors

	public String getUserNo() {
		return this.userNo;
	}

	public void setUserNo(String userNo) {
		this.userNo = userNo;
	}

	public String getJfh() {
		return this.jfh;
	}

	public void setJfh(String jfh) {
		this.jfh = jfh;
	}

	public String getAccNo() {
		return this.accNo;
	}

	public void setAccNo(String accNo) {
		this.accNo = accNo;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof AbstractBtOrgUserNoMappingId))
			return false;
		AbstractBtOrgUserNoMappingId castOther = (AbstractBtOrgUserNoMappingId) other;

		return ((this.getUserNo() == castOther.getUserNo()) || (this
				.getUserNo() != null && castOther.getUserNo() != null && this
				.getUserNo().equals(castOther.getUserNo())))
				&& ((this.getJfh() == castOther.getJfh()) || (this.getJfh() != null
						&& castOther.getJfh() != null && this.getJfh().equals(
						castOther.getJfh())))
				&& ((this.getAccNo() == castOther.getAccNo()) || (this
						.getAccNo() != null && castOther.getAccNo() != null && this
						.getAccNo().equals(castOther.getAccNo())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getUserNo() == null ? 0 : this.getUserNo().hashCode());
		result = 37 * result
				+ (getJfh() == null ? 0 : this.getJfh().hashCode());
		result = 37 * result
				+ (getAccNo() == null ? 0 : this.getAccNo().hashCode());
		return result;
	}

}